package com.away.ymcc.dto;

import com.away.ymcc.constsant.VaildationConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterDTO {

    @Pattern(regexp = VaildationConstant.TEL_REGEX, message = "号码格式错误")
    private String mobile;

    @NotNull(message = "不能为空")
    private String password;

    @NotNull(message = "不能为空")
    private Integer regChannel;

    @NotNull(message = "不能为空")
    private String smsCode;
}
